package com.ruis.kotboot

import com.baomidou.mybatisplus.spring.boot.starter.MybatisPlusAutoConfiguration
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
import org.springframework.boot.builder.SpringApplicationBuilder
import org.springframework.boot.runApplication
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer


@SpringBootApplication(exclude = [MybatisPlusAutoConfiguration::class,DataSourceAutoConfiguration::class])
//@EnableDiscoveryClient
//@EnableFeignClients
//@EnableCaching
class MainApplication: SpringBootServletInitializer() {
    override fun configure(builder: SpringApplicationBuilder): SpringApplicationBuilder {
        return builder.sources(MainApplication::class.java)
    }
}

fun main(args: Array<String>) {
    runApplication<MainApplication>(*args)
}